package com.contronller;

import com.server.Empserverimp;
import com.uiti.Result;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("Emp")
@CrossOrigin
public class conn {
    @Resource
    Empserverimp empserverimp;
    @GetMapping("select")
    public Result select(){
        return Result.success(empserverimp.select());
    }
    @GetMapping("insert")
    public int insert(String test){
        return empserverimp.insert(test);
    }
}
